package one;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class Test {


        public static void main(String[] args) {
            List<String> a=new ArrayList<>();
            Collections.addAll(
                    a,"俄罗斯","沙特","埃及"," 乌拉圭"," 葡萄牙"," 西班牙"," 摩洛哥 ","伊朗",
                    "法国"," 澳大利亚"," 秘鲁 ","丹麦"," 阿根廷 ","冰岛"," 克罗地亚","尼日利亚 ",
                    "巴西 ","瑞士 ","哥斯达黎加 ","塞尔维亚"," 德国","墨西哥 ","瑞典"," 韩国",
                    " 比利时"," 巴拿马"," 突尼斯"," 英格兰"," 波兰"," 塞内加尔"," 哥伦比亚"," 日本");
            Random r=new Random();
            String b;
            for(int i=1;i<=8;i++){
                System.out.println("\n"+"第"+i+"组");
                for(int j=0;j<4;j++){
                    b=a.get(r.nextInt(a.size()));
                    System.out.print(" "+b);
                    a.remove(b);
                }
            }
        }

    }

